package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("lumiere_cart_goods_formula_specifications_data_proportioning")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class LumiereCartGoodsFormulaSpecificationsDataProportioning {

    @TableId
    private int id;
    private int cartGoodsId;
    private int formulaSpecificationsDataProportioningId;
    private int quantity;
    private BigDecimal price;
    private String groupName;

    private String makeUnit;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private LocalDateTime addTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE) // 插入 和 更新时 自动填充
    private LocalDateTime updateTime;

    /**
     * 是否删除(0否 1是)
     */
    @TableLogic
    private Boolean deleted;
}
